/*
 * 请求服务器列表
 */
package labox.innovation.loginserver.socket.clientpackets;

import labox.innovation.loginserver.socket.serverpackets.ServerList;
import labox.innovation.loginserver.socket.serverpackets.LoginFail.LoginFailReason;

/**
 * 游戏服务器列表封包 Format: ddc d: fist part of session id d: second part of session id c: ?
 */
public class RequestServerList extends LoginClientPacket {
	private int _skey1;

	private int _skey2;

	private int _data3;

	/**
	 * @return
	 */
	public int getSessionKey1() {
		return _skey1;
	}

	/**
	 * @return
	 */
	public int getSessionKey2() {
		return _skey2;
	}

	/**
	 * @return
	 */
	public int getData3() {
		return _data3;
	}

	@Override
	public void readImpl() {
		_skey1 = readInt(); // loginOk 1
		_skey2 = readInt(); // loginOk 2
	}

	/**
	 * @see com.l2jserver.mmocore.network.ReceivablePacket#run()
	 */
	@Override
	public void run() {
		//		if (getClient().getSessionKey().checkLoginPair(_skey1, _skey2)) {
		//			getClient().sendPacket(new ServerList(getClient()));
		//		} else {
		//			getClient().close(LoginFailReason.REASON_ACCESS_FAILED);
		//		}
	}
}
